package com.twang.stock.task.old;

import com.twang.stock.service.jinyan.QinXUZhiShuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * 计算情绪指数：
 * 5分钟执行一次
 *  带预警
 */
@Slf4j
@Service
public class QinXUZhiShuTask extends BaseTask{


    @Autowired
    private QinXUZhiShuService qinXUZhiShuService;

    //@Scheduled(cron = "0/1 * * * * ?")作废
    public void excute(){
        if (!isWorkTradeTime()) {
            return;
        }
        qinXUZhiShuService.query();
    }
}
